.main {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 30px;
    padding-bottom: 15px;
    user-select: none;
    width: 540px;
}
.crop{
    display: flex;
    justify-content: space-between;
}
.left {
    position: relative;
    width: 250px;
    height: 250px;
    border: 1px solid #ddd;
    display: flex;
}
.left .container {
    position: relative;
    margin: auto;
}
.left .container .mainImg {
    position: absolute;
    width: 100%;
    max-width: 100%;
    display: block;
}
.left .modal {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
}
.left .cropbox, .left .cropboxView{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    transform: translate3d(0, 0, 0);
    border: 1px solid rgba(64, 158, 255, .6);
    cursor: move;
    box-sizing: border-box;
    visibility: hidden;
}
.left .cropbox {
    overflow: hidden;
}
.left .cropbox img {
    position: absolute;
    left: -1px;
    top: -1px;
    transform-origin: 0 0;
}
.left .cropboxView span {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(64, 158, 255, .6);
    z-index: 1;
}
.left .cropboxView span:nth-of-type(1){
    top: -6px;
    left: -6px;
    cursor: nwse-resize;
}
.left .cropboxView span:nth-of-type(2){
    top: -6px;
    right: -6px;
    cursor: nesw-resize;
}
.left .cropboxView span:nth-of-type(3){
    bottom: -6px;
    right: -6px;
    cursor: nw-resize;
}
.left .cropboxView span:nth-of-type(4){
    bottom: -6px;
    left: -6px;
    cursor: ne-resize;
}
.left .cropboxView span:nth-of-type(5){
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    cursor: w-resize;
}
.left .cropboxView span:nth-of-type(6){
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    cursor: w-resize;
}
.left .cropboxView span:nth-of-type(7){
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: s-resize;
}
.left .cropboxView span:nth-of-type(8){
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: s-resize;
}
.right {
    width: 250px;
    height: 250px;
    border: 1px solid #ddd;
    display: flex;
}
.right .prevview {
    max-width: 250px;
    max-height: 250px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin: auto;
}
.right .prevview img {
    position: relative;
    transform: translate3d(0, 0, 0) scale(1);
    z-index: 0;
    transform-origin: 0 0;
    top: 0;
    left: 0;
}
.contorl {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}